Optimal. Leaf size=134 \[ -\frac{6 i c^4 (a+i a \tan (e+f x))^{m+2}}{a^2 f (m+2)}+\frac{i c^4 (a+i a \tan (e+f x))^{m+3}}{a^3 f (m+3)}-\frac{8 i c^4 (a+i a \tan (e+f x))^m}{f m}+\frac{12 i c^4 (a+i a \tan (e+f x))^{m+1}}{a f (m+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.170084, antiderivative size = 134, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.097, Rules used = {3522, 3487, 43} \[ -\frac{6 i c^4 (a+i a \tan (e+f x))^{m+2}}{a^2 f (m+2)}+\frac{i c^4 (a+i a \tan (e+f x))^{m+3}}{a^3 f (m+3)}-\frac{8 i c^4 (a+i a \tan (e+f x))^m}{f m}+\frac{12 i c^4 (a+i a \tan (e+f x))^{m+1}}{a f (m+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3522
Rule 3487
Rule 43
Rubi steps
\begin{align*} \int (a+i a \tan (e+f x))^m (c-i c \tan (e+f x))^4 \, dx &=\left (a^4 c^4\right ) \int \sec ^8(e+f x) (a+i a \tan (e+f x))^{-4+m} \, dx\\ &=-\frac{\left (i c^4\right ) \operatorname{Subst}\left (\int (a-x)^3 (a+x)^{-1+m} \, dx,x,i a \tan (e+f x)\right )}{a^3 f}\\ &=-\frac{\left (i c^4\right ) \operatorname{Subst}\left (\int \left (8 a^3 (a+x)^{-1+m}-12 a^2 (a+x)^m+6 a (a+x)^{1+m}-(a+x)^{2+m}\right ) \, dx,x,i a \tan (e+f x)\right )}{a^3 f}\\ &=-\frac{8 i c^4 (a+i a \tan (e+f x))^m}{f m}+\frac{12 i c^4 (a+i a \tan (e+f x))^{1+m}}{a f (1+m)}-\frac{6 i c^4 (a+i a \tan (e+f x))^{2+m}}{a^2 f (2+m)}+\frac{i c^4 (a+i a \tan (e+f x))^{3+m}}{a^3 f (3+m)}\\ \end{align*}
Mathematica [F] time = 108.492, size = 0, normalized size = 0. \[ \int (a+i a \tan (e+f x))^m (c-i c \tan (e+f x))^4 \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.605, size = 5385, normalized size = 40.2 \begin{align*} \text{output too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (-i \, c \tan \left (f x + e\right ) + c\right )}^{4}{\left (i \, a \tan \left (f x + e\right ) + a\right )}^{m}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.68052, size = 635, normalized size = 4.74 \begin{align*} \frac{{\left (-8 i \, c^{4} m^{3} - 48 i \, c^{4} m^{2} - 88 i \, c^{4} m - 48 i \, c^{4} e^{\left (6 i \, f x + 6 i \, e\right )} - 48 i \, c^{4} +{\left (-48 i \, c^{4} m - 144 i \, c^{4}\right )} e^{\left (4 i \, f x + 4 i \, e\right )} +{\left (-24 i \, c^{4} m^{2} - 120 i \, c^{4} m - 144 i \, c^{4}\right )} e^{\left (2 i \, f x + 2 i \, e\right )}\right )} \left (\frac{2 \, a e^{\left (2 i \, f x + 2 i \, e\right )}}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}\right )^{m}}{f m^{4} + 6 \, f m^{3} + 11 \, f m^{2} + 6 \, f m +{\left (f m^{4} + 6 \, f m^{3} + 11 \, f m^{2} + 6 \, f m\right )} e^{\left (6 i \, f x + 6 i \, e\right )} + 3 \,{\left (f m^{4} + 6 \, f m^{3} + 11 \, f m^{2} + 6 \, f m\right )} e^{\left (4 i \, f x + 4 i \, e\right )} + 3 \,{\left (f m^{4} + 6 \, f m^{3} + 11 \, f m^{2} + 6 \, f m\right )} e^{\left (2 i \, f x + 2 i \, e\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (-i \, c \tan \left (f x + e\right ) + c\right )}^{4}{\left (i \, a \tan \left (f x + e\right ) + a\right )}^{m}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]